package com.fy.dao.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fy.common.entity.SkImChatSession;
import com.fy.common.vo.ChatSessionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SkImChatSessionMapper extends BaseMapper<SkImChatSession> {
    List<SkImChatSession> list(@Param("userId") Long userId);

    SkImChatSession selectBySessionId(@Param("sessionId") String sessionId);

    void updateTop(SkImChatSession chatSession);

    void recoverSession(@Param("id") Long id,@Param("lastDeleteType") Integer lastDeleteType);

    void topOrMuteSet(SkImChatSession chatSession);
}